﻿<%@ Page Language="C#" Inherits="E.Web.Teacher.publics.course.Edit" %>
<%@ Import Namespace="E.Model" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
  <title>课程信息</title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  <link rel="stylesheet" href="/css/main.css" type="text/css" media="all" />
  <link rel="stylesheet" href="/css/t_main.css" type="text/css" media="all" />
  <script type="text/javascript" src="/js/course.js"></script>
  <script type="text/javascript">
    window.onload = function() {
      document.getElementById("form1").style.display = "";
    }
  </script>
</head>
<body>
  <form id="form1" action="" method="post" style="display:none;">
    <div class="m_top"></div>
    <div class="block_2">
      <div style="width:650px; height:22px;">
        <div class="title">&nbsp;课程信息</div>
      </div>
      <div class="spe_line_2"></div>
      <div class="box_1">
        <div class="fl tr left">课程名称：</div>
        <div class="fl dis_r"><input type="text" id="NameTxt" name="NameTxt" value="<%=model.Name %>" style="width:200px;" /></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">课程类别：</div>
        <div class="fl dis_r">
          <% if (categoryList != null && categoryList.Count > 0) { %>
          <select id="CategorySlt" name="CategorySlt">
            <option value="-1">请选择</option>
            <% foreach (CourseCategoryModel cc in categoryList) { %>
            <option value="<%=cc.ID %>"><%=cc.Name %></option>
            <% } %>
          </select>
          <% } %>
        </div>
      </div> 
      <div class="box_1">
        <div class="fl tr left">课时：</div>
        <div class="fl dis_r"><input type="text" id="SchoolHourTxt" name="SchoolHourTxt" style="width:50px;" value="<%=model.SchoolHour %>" /></div>
      </div>
      <div class="box_1">
        <div class="fl tr left">描述：</div>
        <div class="fl dis_r"><input type="text" id="DescriptionTxt" name="DescriptionTxt" style="width:200px;" maxlength="100" value="<%=model.Description %>" /></div>
      </div>
    </div>
    <div class="block">
      <div style="width:350px; margin-top:20px; text-align:center;">
        <input type="image" src="/images/btn/confirm.gif" style="width:52px; height:22px;" onclick="return CheckPForm();" />
        &nbsp;&nbsp;<a href="/publics/course/List.aspx"><img alt="" src="/images/btn/back.gif" /></a>
      </div>
    </div>
      <input type="hidden" id="act" name="act" value="<%=act %>" />
      <input type="hidden" id="id" name="id" value="<%=id %>" />
  </form>
      <% if (act == "u") { %>
    <script type="text/javascript">
      document.getElementById("CategorySlt").value = '<%=model.CategoryID %>';
    </script>
      <% } %>
</body>
</html>
